package com.mfnote.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageSwitcher;
import android.widget.ImageView;
import android.widget.ViewSwitcher.ViewFactory;
/**
 * imageSwitch中内容的创建工厂
 * @author ZHF
 *
 */
public class MyViewFactory implements ViewFactory{

	private Context context;
	
	public MyViewFactory(Context context) {
		this.context = context;
	}

	/**设置显示的内容的属性**/
	@Override
	public View makeView() {
		ImageView iv = new ImageView(context);
		iv.setLayoutParams(new ImageSwitcher.LayoutParams(150,300));
		return iv;
	}

}
